//
//  HORecordView.h
//  微度报修
//
//  Created by foguo-mac-1 on 6/6/16.
//  Copyright © 2016 WeiDu. All rights reserved.
//

#import "HOBaseView.h"
#import "HODefine.h"

@protocol HORecordViewDelegate <NSObject>
-(void)updateTheVolumeImage;
-(void)deleteTheVolume;
-(void)begainToRecord;
-(void)stopRecording;
-(void)resumesRecording;
-(void)pauseRecording;
-(void)canceleRecording;
@end
@protocol HORecordViewDownloadDelegate <NSObject>
- (void)popupHintView:(NSString *)content;
- (void)updateAudioIndicateWithPlayWithStatus:(AUDIO_PLAY_STATUS)playStatus;
@end

@interface HORecordView : HOBaseView
- (instancetype)initWithFrame:(CGRect)frame isRecordModal:(BOOL)isRecordModal;
@property(nonatomic, assign)id<HORecordViewDelegate> delegate;
@property(nonatomic, assign)id<HORecordViewDownloadDelegate> downloadDelegate;
@property(nonatomic, retain)UILabel *textLbl;

- (void)playAudio;
- (void)showLoadingWithTotalTime:(double)time;
- (void)setAudioWithTotalTime:(double)totalTime withFileName:(NSString *)fileName;
- (void)removeAudio;
- (void)cleanup;
- (void)disableRecord;
- (void)testAudio:(double)totalTime withFileName:(NSString *)fileName;
- (void)stopAudioPlay;
@end
